527536766106ce4b107d73f6e108dedf8363864f,portlets/knowledge-base-portlet/docroot/WEB-INF/src/com/liferay/knowledgebase/admin/lar/AdminPortletDataHandler.java,AdminPortletDataHandler,doDeleteData,#PortletDataContext#String#PortletPreferences#,89
Before Change
PortletPreferences portletPreferences)
throws Exception {
if (!portletDataContext.addPrimaryKey(
AdminPortletDataHandler.class, "deleteData")) {
KBArticleLocalServiceUtil.deleteGroupKBArticles(
portletDataContext.getScopeGroupId());
After Change
PortletPreferences portletPreferences)
throws Exception {
if (portletDataContext.addPrimaryKey(
AdminPortletDataHandler.class, "deleteData")) {
return portletPreferences;
}
KBArticleLocalServiceUtil.deleteGroupKBArticles(
portletDataContext.getScopeGroupId());
KBTemplateLocalServiceUtil.deleteGroupKBTemplates(
portletDataContext.getScopeGroupId());
return portletPreferences;
}
@Override